package com.rdc.qingkou.contract;

import com.rdc.qingkou.entity.ModifyUserInfoResult;
import com.rdc.qingkou.entity.Result;
import com.rdc.qingkou.model.imodel.OnHttpCallBack;

/**
 * Created by WaxBerry on 2017/11/12.
 */

public class ChangePasswordContract {

    public interface IView{

        void getPassword(ModifyUserInfoResult modifyUserInfoResult);
        void showModifyResult(Result result);
        void showInfo(String info);//提示用户,提升友好交互
    }

    public interface IModel {

        void showPassword(Integer userId, OnHttpCallBack<ModifyUserInfoResult> callBack);
        void changePassword(String userId,String oldPassword,String newPassword,String confirmPassword,OnHttpCallBack<Result> callBack);
    }

    public interface IPresenter {

        void showPassword(Integer userId);
        void changePassword(String userId,String oldPassword,String newPassword,String confirmPassword);
    }
}
